package com.jinsi.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.HashMap;
import java.util.Map;

@Controller
public class StuController {

    // 拦截的测试方法
    @ResponseBody
    @RequestMapping("/getAll")
    public Map<String,String> getAll(){
        Map<String, String> map = new HashMap<>();
        map.put("tip","成功");

        return map;
    }
}
